package project.calss_tow_pasture;

import java.util.List;

/**
 * description:页面工具类
 * author: xiaoxu
 * createTime: 2018-11-26 17:34
 **/
public class PageUtil {

    //菜单列表
    public static void menuList() {
        System.out.println();
        System.out.println("---------------------------主菜单--------------------------");
        System.out.println("1.种菜/喂仔 2.查看牧场状况 3.照看生物 4.收获 5.查看冰箱 ");
        System.out.println("-----------------------------------------------------------");
        System.out.println("请输入要进行操作的选项：");
    }

    public static void biologyList() {
        System.out.println();
        System.out.println("------------------------生物列表---------------------------");
        System.out.println("1.鸭 ");
        System.out.println("-----------------------------------------------------------");
        System.out.println("请输入要种植或喂养的生物：");

    }


    public static void landList(List<Biology> list) {
        System.out.println();
        System.out.println("-----------------------牧场状况---------------------");

        if (list.size() == 0) {
            System.out.println("还没有种植或饲养生物！");
            return;
        }
        System.out.println("序号---名称---需要照看次数---当前照看次数-");
        for (int i = 0; i < list.size(); i++) {
            Biology biology = list.get(i);
            System.out.println(" " + (i + 1) +"     "
                    +biology.name + "            "
                    + biology.needCount + "            "
                    + biology.currentLookAfterCount + "          "
            );
        }
        System.out.println("-----------------------------------------------------------");
        System.out.println("请输入要进行操作的序号：");
    }

}
